package com.sprucetec.live.common.dto.business;

import com.sprucetec.live.entity.LiveChat;
import lombok.Data;

/**
 * @ClassName LiveChatDto
 * @Description:
 * @Author Kenny
 * @Date 2020/3/30
 **/

@Data
public class LiveChatDto extends LiveChat {
    private Integer pageSize;

    private Integer pageIndex;

    private Long newChatId;

    private String liveNo;

    private Integer muted;
    private String title;
    private Integer operateType; // 操作聊天类型

    private String ctxId; // netty 服务channel通道


    /**
     * 导出聊天信息相关
     */
    private String chatTypeName;


    public void judgePage() {
        if (pageIndex == null) {
            this.setPageIndex(1);
        }
        if (pageSize == null) {
            this.setPageSize(10);
        }
    }

}
